#ifndef __APP_TASK_H_
#define __APP_TASK_H_


#include "bsp_include.h"
#include "cmsis_os2.h"
#include "sample.h"
#include "protocol.h"
#include "hostComputer.h"


void AppTask_Init(void);


typedef struct{
	const char *taskName;
	uint32_t average_tick;
	uint32_t max_tick;
	uint32_t min_tick;
	int32_t tick_data[2];
	uint32_t average_num;
	uint32_t max_num;
	uint32_t min_num;
	uint32_t num_data;
	uint8_t	 onesec_flag;
}CalTaskTime_TypeDef;
	
#define MAX_TASK_CNT 2

#endif

